<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>



<%-- <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
<tr><td><span class="color_red">*</span>${param.title }</td></tr>
<tr class=""><td align="left" class="t_bar2"><span class="color_red">*</span><strong>${param.title }</strong></td></tr>
</table> --%>


 <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="basic_info18">
      <tr class="">
          <td align="left" class="t_bar2"><strong><span class="color_red">*</span>1、建设目标（配套土建、重大研发设备、小试或中试线等）（限1000字）</strong></td>
      </tr>
      <tr class="">
          <td>
			<textarea rows="8" style="width:98%;"  class="input_textarea required  maxlength:1000"   name='proposal/goal/summary5'  label="${param.title }-->1、建设目标"><x:out select="$xmlData/data/proposal/goal/summary5"/></textarea>
		   <input type='hidden' name='proposal/goal/summary5_hidden' id='proposal/goal/summary5_hidden' value=''>
		  </td>
      </tr>
      <tr class="li_1">
          <td align="left" class="t_bar2"><strong><span class="color_red">*</span>2、资产目标（固定资产、流动资金、无形资产）（限1000字）</strong></td>
      </tr>
      <tr class="">
          <td>
			<textarea rows="8" style="width:98%;" name='proposal/goal/summary6' class="input_textarea required  maxlength:1000"   label="${param.title }-->2、资产目标"><x:out select="$xmlData/data/proposal/goal/summary6"/></textarea>
	        <input type='hidden' name='proposal/goal/summary6_hidden' id='proposal/goal/summary6_hidden' value=''>
	      </td>
      </tr>
       <tr class="">
          <td align="left" class="t_bar2"><strong><span class="color_red">*</span>3、团队目标（包括研发及管理机构设置、固定研发及管理人员、柔性研发及管理人员）（限1000字）</strong></td>
      </tr>
      <tr class="">
          <td>
			<textarea rows="8" style="width:98%;" name='proposal/goal/summary7' class="input_textarea required  maxlength:1000"   label="${param.title }-->3、团队目标"><x:out select="$xmlData/data/proposal/goal/summary7"/></textarea>
	        <input type='hidden' name='proposal/goal/summary7_hidden' id='proposal/goal/summary7_hidden' value=''>
	      </td>
      </tr>
    </table>
    
    
    
    
     <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
      <tr class="">
          <td align="left" class="t_bar2"><strong><span class="color_red">*</span>4、项目目标</strong></td>
      </tr>
      </table>
    <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="tblMileStones_project">
    <col style="width:5%"/>
    <col style="width:5%"/>
    <col style="width:15%"/>
    <col style="width:15%"/>
    <col style="width:15%"/>
    <col style="width:45%"/>
   
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center">选择</th>
						<th class="TblHead" align="center">序号</th>
						<th class="TblHead" align="center">开始日期</th>
						<th class="TblHead" align="center">结束日期</th>
						<th class="TblHead" align="center">项目名称</th>
						<th class="TblHead" align="center">主要内容（限500字）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selMileStones_project" >
						</td>
						<td align="center">&nbsp;
							<span name="milestones_project|milestone[0]@seq_no" >[index]</span> 
							<!-- <input type="hidden" name="milestones_project|milestone[0]@seq_no_zh" value=""/> -->
							
							
						</td>
						
						
						<td align="center">&nbsp;
							<input  id="milestone_project_start_date1_[0]" name="milestones_project|milestone[0]|start_date" label="开始日期"value="" class=" required input_text date  dateCompare:milestone_project_end_date1_[0] dateCompareAfterE:milestone_project_start_date1_[0]:start_date" style="width:70%"  maxlength="20"  label="开始日期" />
						</td>
						<td align="center">&nbsp;<input  id="milestone_project_end_date1_[0]" name="milestones_project|milestone[0]|end_date" label="结束日期" value="" class=" required input_text date dateCompareBeforeE:milestone_project_end_date1_[0]:end_date " style="width:70%"    maxlength="20"     label="结束日期" /> </td> 
						
						<td align="center">&nbsp;<input  id="project_name" name="milestones_project|milestone[0]|project_name" label="项目名称" value="" class="required input_text maxlength:20" style="width:80%" label="项目名称"      maxlength="20"  /></td> 
						
						
						
						<td>&nbsp;<textarea name="milestones_project|milestone[0]|content" class="input_textarea required maxlength:500" label="主要内容"  rows=5 style="width:94%"></textarea>
						<input type="hidden" name="milestones_project|milestone[0]|content_hidden" />
						</td> 
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/milestones_project/milestone" var="milestone">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selMileStones_project" >
						</td>
						<td align="center">
							<span   name="milestones_project/milestone[${flag}${index}]@seq_no" ><x:out select="$milestone/@seq_no"/></span> 
						  <%-- <input type="hidden" name="milestones_project/milestone[${flag}${index}]@seq_no_zh" value="<x:out select="$milestone/@seq_no_zh"/>"/>
						<x:out select="$milestone/@seq_no_zh"/> --%>
						</td>
						
						
						<td align="center">&nbsp;
							<c:set var="start_date" scope="page"><x:out select="$milestone/start_date"/></c:set>
							<input  id="milestone_start_date1_[${flag}${index}]" value="${start_date}" label="开始日期" name="milestones_project/milestone[${flag}${index}]/start_date" class="required date input_text dateCompare:milestone_end_date1_[${flag}${index}] dateCompareAfterE:milestone_start_date1_[${flag}${index}]:start_date"  maxlength="20" style="width:70%" label="开始日期" /> 
						</td>
						<td align="center">&nbsp;
							<c:set var="end_date" scope="page"><x:out select="$milestone/end_date"/></c:set>
							<input  id="milestone_end_date1_[${flag}${index}]" name="milestones_project/milestone[${flag}${index}]/end_date" label="结束日期" value="${end_date}" class="required date input_text dateCompareBeforeE:milestone_end_date1_[${flag}${index}]:end_date" style="width:70%"  maxlength="20" label="结束日期" /> </td> 
						
						<td align="center">&nbsp;<input type="text" name="milestones_project/milestone[${flag}${index}]/project_name" class="input_text required maxlength:20" label="项目名称"    style="width:80%"  maxlength="20"    value="<x:out select="$milestone/project_name"/>"/></td>
						
						<td>&nbsp;
							<textarea name="milestones_project/milestone[${flag}${index}]/content" class="input_textarea required maxlength:500" label="主要内容" rows=5 style="width:94%"><x:out select="$milestone/content"/></textarea>
							<input type="hidden" name="milestones_project/milestone[${flag}${index}]/content_hidden" id="milestones/milestone[${flag}${index}]/content_hidden" value="<x:out select="$milestone/content_hidden"/>"/>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblMileStones_project");
					</script>
				</tbody>
					</table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones_project',99,'项目目标最多只能填写99条')){addNewRow('tblMileStones_project');showDateTag('tblMileStones_project');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblMileStones_project','selMileStones_project');">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblMileStones_project','selMileStones_project');">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblMileStones_project','项目目标');">
					</td></tr>
	</table>
    
    
    
    
    <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="basic_info20">
      <tr class="">
          <td align="left" class="t_bar2"><strong><span class="color_red">*</span>5、产业化目标（限1000字）</strong></td>
      </tr>
      <tr class="">
          <td>
			<textarea rows="8" style="width:98%;"  class="input_textarea required  maxlength:1000"   name='proposal/goal/summary8'  label="${param.title }-->5、产业化目标"><x:out select="$xmlData/data/proposal/goal/summary8"/></textarea>
		   <input type='hidden' name='proposal/goal/summary8_hidden' id='proposal/goal/summary8_hidden' value=''>
		  </td>
      </tr>
      <tr class="li_1">
          <td align="left" class="t_bar2"><strong><span class="color_red">*</span>6、管理运行机制（包括1、协同研发及产业化分工；2、利益分配机制；3、无形资产归属；4、经费使用及管理；5、技术合作及产业联盟等）（限1000字）</strong></td>
      </tr>
      <tr class="">
          <td>
			<textarea rows="8" style="width:98%;" name='proposal/goal/summary9' class="input_textarea required  maxlength:1000"   label="${param.title }-->6、管理运行机制"><x:out select="$xmlData/data/proposal/goal/summary9"/></textarea>
	        <input type='hidden' name='proposal/goal/summary9_hidden' id='proposal/goal/summary9_hidden' value=''>
	      </td>
      </tr>
    </table>
    
    
    
   <!--  <script type="text/javascript">
		function transform(){
	
			   $("#tblMileStones_project").find("tr:not(:hidden)").find("span[name$='@seq_no']").each(function(){
				      var number = $(this).text();
			        var AA = new Array("","一","二","三","四","五","六","七","八","九");
					    var units_digit = number % 10;
					    var tens_digit = (number-number%10)/10;
					    var capital;
					    
					    /* alert(units_digit);
					    alert(tens_digit); */
					    
					    
			        if(tens_digit == 0){capital=AA[units_digit];}
			        else if(tens_digit == 1){
			        	capital="十"+AA[units_digit];
			        }else{
			        	capital=AA[tens_digit]+"十"+AA[units_digit];
			        		}
					    $(this).html(capital);
					    
					 
					    
					    
					   /* alert(capital);  */
			        });

		};
    </script> -->

    
    
    
